﻿namespace Dynamic.Api.Attributes
{

    /// <summary>
    /// 基于服务的动态Api
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class DynamicApiServiceAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        public DynamicApiServiceAttribute()
        {
            ServiceName = string.Empty;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="serviceName"></param>
        public DynamicApiServiceAttribute(string serviceName)
        {
            ServiceName = serviceName;
        }

        public string ServiceName { get; }
    }
}
